import request from '@/utils/request'

// 置换订单列表page
export function getList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/order/zh/page', data)
}
// 定金订单列表详情
export function detailById(id) {
  return request.get(`/sq/order/zh/${id}`)
}

/**
 * 更新置换订单
 * @param {*} data
 */
export function update(data) {
  return request.put('/sq/order/zh/save', data)
}
/**
 * 删除置换订单
 * @param {*} id
 */
export function deleteById(id) {
  return request.delete(`/sq/order/zh/${id}`)
}
